Skip to content

fix(supergateway): restore tarball-consistent manifest and lockfile - #14140

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
fix/supergateway-npmdeps-hash
Nov 24, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
fix/supergateway-npmdeps-hash

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What broke

Building the amd NixOS configuration from main fails in pkgs/supergateway — first as an npmDepsHash mismatch, and (with the hash pasted from the failure) as an ENOTCACHED install failure for @modelcontextprotocol/client / @hono/node-server.

Cause

Dependabot's npm updates cover /pkgs/supergateway and bumped its vendored package.json + package-lock.json (@modelcontextprotocol/sdk 1.30.0 → 1.32.0, #13437; @modelcontextprotocol/client → 2.3.0; @hono/node-server 1.19.17 → 1.19.19, #13430). But the package builds the published supergateway 4.2.2 tarball, whose own manifest pins sdk 1.30.0 and client 2.0.0 exactly. The build copies the vendored lockfile over the tarball's while npm ci validates against the tarball's manifest — the bumped lockfile can never satisfy it, so npm re-resolves against the registry and dies in the sandbox.

Evidence: with the pre-bump lockfile restored, the fakeHash harvest returns sha256-ONHco8zw… — exactly the npmDepsHash already on main. The original state was fully self-consistent; the bumps were the sole breakage. (A fresh recipe regeneration also fails: it re-resolves @hono/node-server to 1.19.19 from npmjs, where the original lockfile pins 1.19.17 from the mirror registry the tree was generated against.)

Fix

  • Restore pkgs/supergateway/package.json and package-lock.json to their pre-bump state (the manifest again matches the tarball's exactly — verified field-for-field). default.nix needs no change: its hash was correct for this lockfile all along.
  • Exclude pkgs/supergateway/** from dependabot's npm updates, the same treatment pkgs/grok-cli/** already has: these vendored lockfiles are generated artifacts of a published tarball's manifest, not a living npm project.

Verified: standalone supergateway build green on the laptop (/nix/store/9ip92maffgy4plcf1id3kjmvvd3llbk0-supergateway-4.2.2). The full-system build + switch outcome is recorded on #12428; the break list is on #14051.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T06:28:41Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Dependabot bumped the vendored manifest/lockfile (sdk 1.32.0, client 2.3.0) past the published 4.2.2 tarball exact pins (sdk 1.30.0, client 2.0.0); the build uses the tarball manifest, so npm ci re-resolves and fails. Restores the pre-bump pair (npmDepsHash returns to sha256-ONHco8zw, the value already on main) and excludes pkgs/supergateway from dependabot npm updates, same as pkgs/grok-cli.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5897183f-8dd6-426a-8bd9-8a5b5facd5cd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant